#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "ptm.h"

#include <QMainWindow>
#include <QFileDialog>
#include <QAction>
#include <QMenu>
#include <QSystemTrayIcon>
#include <QToolButton>
#include <QTableWidget>
#include <QDebug>
#include <QCloseEvent>
#include <QMessageBox>
#include <QProcess>

//#include <QtGui>

#include "progressbar.h"


namespace Ui {
  class MainWindow;
}

class MainWindow : public QMainWindow
{
  Q_OBJECT

public:
  explicit MainWindow(QMainWindow *parent = 0);
  ~MainWindow();

private slots:
  void OpenFile(void);
  void Run(void);
  void clickTrayIcon(QSystemTrayIcon::ActivationReason reason);
  void closeEvent(QCloseEvent *event);
  void closeProgram(void);
  void startPresentation (void);
  void closedProgressBar(void);
  void clickedNextAtProgressBar(void);
  void clickedIncAtProgressBar(void);
  void clickedOnTableWidget(int x,int );
  void changeSettings();

signals:
  void mouseClickedOnTray(bool);

private:
    PTMWidget* ptmWidget;
    progressbar* pBar;
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
